import './Index.scss';
import { Outlet } from 'react-router-dom';
import RootFooter from './_component_/RootFooter';
import RootHeader from './_component_/RootHeader';
import routes from './routes';



export default () => {
    return (
        <div className="root-routes">
            <RootHeader parentPath={routes.path} data={routes.headers} />
            <div className='root-pages'>
                <Outlet />
            </div>
            <RootFooter parentPath={routes.path} data={routes.footers} />
        </div>
    );
}